package com.hwhhhh.mygrad.fragment;

import android.view.View;

import androidx.constraintlayout.widget.ConstraintLayout;

import com.hwhhhh.mygrad.AdminActivity;
import com.hwhhhh.mygrad.R;

public class AdminHomeFragment extends BaseFragment implements View.OnClickListener{
    private ConstraintLayout clsManageLayout;

    @Override
    protected int initLayout() {
        return R.layout.fragment_admin_home;
    }

    @Override
    protected void initView() {
        clsManageLayout = mRootView.findViewById(R.id.cls_manage_layout);
    }

    @Override
    protected void initData() {
        clsManageLayout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.cls_manage_layout) {
            ((AdminActivity)getActivity()).replaceTo(new ClsManageFragment(), ClsManageFragment.class.getSimpleName());
        }
    }
}
